<template>
  <div class="my_input">
     <input type="text" :value="modelValue" @input="$emit('update:modelValue',$event.target.value)" placeholder="输入学校、商务楼、地址">
     <button @click="$emit('submit')">提交</button>
  </div>
</template>

<script>
import { ref, reactive, toRefs } from "vue";
export default {
  props:{
    modelValue: String
  },
  setup() {},
};
</script>
<style lang="scss" scoped>
.my_input{
  border: 1px solid #ccc;
  padding: 10px 20px;
  input{
    display: block;
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
    margin-bottom: 10px;
  }
  button{
    border: none;
    width: 100%;
    padding: 5px;
    background: rgb(98, 98, 230);
    color: #fff;
  }
}
</style>